package top.archiesean;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import top.archiesean.server.RpcServer;

@SpringBootApplication
public class ServerApplication {
    public static void main(String[] args) throws InterruptedException {
        ApplicationContext applicationContext = SpringApplication.run(ServerApplication.class, args);
        applicationContext.getBean(RpcServer.class).startServer("127.0.0.1", 8888);
    }
}